From: Florian Müllner Date: Thu, 19 Mar 2015 22:07:12 +0000 (+0100) Subject: legacyTray: Pass on keyboard events to the icon X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1436 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f2c1a416bf8eb47a0dfe8ef8dbd90d971c6803e9;p=gnome-shell.git legacyTray: Pass on keyboard events to the icon There is currently no way to trigger an icon's right-click menu by keyboard. While there's a good chance that the icon will ignore F10 and similar shortcuts, passing on key events will at least make it work for some icons ... https://bugzilla.gnome.org/show_bug.cgi?id=746487 --- diff --git a/js/ui/legacyTray.js b/js/ui/legacyTray.js index 57a756a4b..42927ef6d 100644 --- a/js/ui/legacyTray.js +++ b/js/ui/legacyTray.js @@ -162,6 +162,11 @@ const LegacyTray = new Lang.Class({ function() { icon.click(Clutter.get_current_event()); }); + button.connect('key-press-event', + function() { + icon.click(Clutter.get_current_event()); + return Clutter.EVENT_PROPAGATE; + }); button.connect('key-focus-in', Lang.bind(this, function() { this._concealHandle.show();